package com.ruibang.glass.material.service.bcp;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruibang.glass.material.domain.req.bcp.BcpProductsInfoReq;
import com.ruibang.glass.material.entity.bcp.MaterialBcpProductsInInfo;

import java.util.List;

/**
 * <p>
 * 半成品入库详情 服务类
 * </p>
 *
 * @author mameng
 * @since 2024-04-02
 */
public interface MaterialBcpProductsInInfoService extends IService<MaterialBcpProductsInInfo> {
    /**
     * 列表
     *
     * @param bcpProductsInfoReq
     * @return
     */
    IPage<MaterialBcpProductsInInfo> getPage(BcpProductsInfoReq bcpProductsInfoReq);

    void addMaterialBcpProductsInInfoList(List<MaterialBcpProductsInInfo> materialBcpProductsInInfos);

    void updateMaterialBcpProductsInInfo(MaterialBcpProductsInInfo materialBcpProductsInInfo);

    /**
     * 库存计算
     *
     * @param materialManagementInventory
     * @return
     */
    void updateInHouse(MaterialBcpProductsInInfo materialManagementInventory);

    MaterialBcpProductsInInfo getMaterialBcpProductsInInfoById(String id);

    String getINNumber();

}
